package com.aichongbang.acb.mapper;

import com.aichongbang.acb.po.Pet;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author acb
 * @since 2021-05-27
 */
@Repository("petMapper")
public interface PetMapper extends BaseMapper<Pet> {

    @ResultMap("getAll")
    List<Pet> getAll();

    @ResultMap("add")
    int add(Pet pet);

    @ResultMap("update")
    int update(Pet pet);

    @ResultMap("delete")
    int delete(Integer id);

}
